#include <stdio.h>

long long T, N, m, j, sum, max;
int main()
{
    scanf("%lld", &T);
    while (T--)
    {
        sum = 0;
        max = 0;
        scanf("%lld", &N);
        for (j = 0; j < N; j++)
        {
            scanf("%lld", &m);
            if (m > max)
            {
                max = m;
            }
            sum += m;
        }
        if (max > sum - max + 1)
        {
            printf("No\n");
        }
        else
        {
            printf("Yes\n");
        }
    }
    return 0;
}